{{ define "blog/testshow_editormd.html" }}
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8"/>
  <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
  <meta name="description" content=""/>
  <meta name="author" content=""/>
  <title>Amita - Bootstrap 4 Multipurpose Admin Dashboard Template</title>

  <link rel="stylesheet" href="/static/editor.md/css/editormd.preview.css" />
  
</head>
<body>
  <div id="test-markdown-view">
      <!-- Server-side output Markdown text -->
      <textarea style="display:none;">### Hello world!</textarea>             
  </div>
  <script src="/static/js/jquery-3.4.1.min.js"></script>
  <script src="/static/editor.md/editormd.js"></script>
  <script src="/static/editor.md/lib/marked.min.js"></script>
  <script src="/static/editor.md/lib/prettify.min.js"></script>
  <script src="/static/editor.md/lib/flowchart.min.js"></script>
  <script src="/static/editor.md/lib/jquery.flowchart.min.js"></script>
  <script src="/static/editor.md/lib/raphael.min.js"></script>
  <script src="/static/editor.md/lib/sequence-diagram.min.js"></script>
  <script src="/static/editor.md/lib/underscore.min.js"></script>
  <script type="text/javascript">
      $(function() {
        var testView = editormd.markdownToHTML("test-markdown-view", {
              // markdown : "[TOC]\n### Hello world!\n## Heading 2", // Also, you can dynamic set Markdown text
              // htmlDecode : true,  // Enable / disable HTML tag encode.
              // htmlDecode : "style,script,iframe",  // Note: If enabled, you should filter some dangerous HTML tags for website security.
          });
      });
  </script> 

</body>
</html>
{{ end }}